package com.beta.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.beta.dto.admin.TransactionDto;
import com.beta.entity.Transactions;
import com.beta.dto.admin.TransactionDetailDto;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * Transactions 表数据库控制层接口
 *
 */
public interface TransactionsMapper extends AutoMapper<Transactions> {
    List<TransactionDto> getTransaction(@Param("resourceId") Integer resourceId);

    TransactionDetailDto getTransactionDetail(@Param("id")Integer transactionId);

    List<TransactionDto> getTransactions(Page<TransactionDto> page, @Param("code") String code,@Param("amountBegin") BigDecimal amountBegin, @Param("amountEnd") BigDecimal amountEnd, @Param("username") String username);
}